package com.config;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.config.environment.Environment;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.util.Map;


/**
 * Created by pengfei on 16/7/12.
 */
@ConfigurationProperties
public class Person implements InitializingBean{
    private String px;
    private String HOME;
    private String nameServer;
//    @Autowired
//    private Environment environment;

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println(111);
    }

    public String getHOME() {
        return HOME;
    }

    public void setHOME(String HOME) {
        this.HOME = HOME;
    }

    public String getPx() {
        return px;
    }

    public void setPx(String px) {
        this.px = px;
    }
}
